import jquery from './assets/jquery';
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入样式
import './assets/font-awesome/css/font-awesome.css'
import axios from 'axios';

window.$ = window.jQuery = jquery
// 引入懒加载
import VueLazyload from 'vue-lazyload'

Vue.use(VueLazyload, {
  loading: require('./assets/images/lazy.gif'),//加载中图片，一定要有，不然会一直重复加载占位图
  error: require('./assets/images/error.gif') //加载失败图片
});

Vue.config.productionTip = false

axios.defaults.baseURL = 'http://127.0.0.1:3000'
Vue.prototype.axios = axios;
Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
